like the Pythagorean theorem: \m {a^2 + b^2 = c^2}, or even with more
advanced
math like geometric series: \m {\sum_{k = 0}^{+\infty} x^k = 1/(1 - x)}?
We will not support complicated nonsense stuff like:
\startplaceformula
\startformula
F__{1}{2}(a,b;b;z) = (1 - z)^{-a}
\stopformula
\stopplaceformula
]
[left={\startmathfenced[cases]},
right=\stopmathfenced,
align={1:right,2:left,3:left},
strut=yes]
\setupformula
[location=left]
\starttext
\samplefile{knuthmath}
\startplaceformula
\startformula
\startalignedcases
{knuthmath}\startplaceformula \startformula \startalignedcases \NC u'(t) - \nabla \cdot (a(x)\nabla u) + Vu \NC = 0 \NC \mtext{bla bla bla} \NR \NC u(x,0) \NC = u_0(x) \NC \mtext{bla bla} \NR \NC u(t,\sigma) \NC
=(,right=),text=]
\def\eqref#1{\informula[eq:#1]}
\starttext
Using \type{\startmathfenced} and \type{\startalign} we can number each
equation, but the left brace is too far from the formula:
\startplaceformula
\startformula
\startmathfenced[cases]
\startalign[n=3,align={1:right,2:left,3:left}]
\NC
-math.tex \
| xmlstarlet ed -d "//*[local-name()='annotation']" \
| xmlstarlet sel -t -c "/p/*" \
| xmlstarlet ed -m "//*[local-name()='semantics']/*" \
"//*[local-name()='math']" \
| xmlstarlet ed -d "//*[local-name()='semantics']"
ightmargin]
\startplaceformula \startformula c^2 = a^2 + b^2
\stopformula \stopplaceformula
\stoptext
Adam
On Sun, Mar 21, 2021 at 8:41 PM Adam Reviczky wrote:
> Thanks Hraban,
>
> That should be fine, I've tried to increase the margins as well, but not
> sure that's the issue as I ca
\setupcaption[figure][location={rightmargin}]
\startplacefigure[title=Cow] \externalfigure[cow] \stopplacefigure
\define[1]\MyFormulaNumber{\inleftmargin{#1}}
\setupformula[numbercommand=\MyFormulaNumber]
\inleftmargin{Left Margin Text}
\inrightmargin{Right Margin Text}
\startplaceformula
[title=Cow] \externalfigure[cow] \stopplacefigure
% this makes the formulanumber disappear
% \setupformulas[location={rightmargin}]
\startplaceformula[reference=eq1,location={rightmargin}] \startformula c^2
= a^2 + b^2 \stopformula \stopplaceformula
\stoptext
But the setupformulas will make the number
gt; \starttext
> > \setupcaption[figure][way=bytext,prefixsegments=1:*]
> > \setupformulas[way=bytext,prefixsegments=1:*]
> > \startsection[title=Section]
> > \startsubsection[title=SubSection]
> > \startplacefigure[list=cow] \externalfigure[cow] \stopplacefigure
>
,prefixsegments=1:*]
\setupformulas[way=bytext,prefixsegments=1:*]
\startsection[title=Section]
\startsubsection[title=SubSection]
\startplacefigure[list=cow] \externalfigure[cow] \stopplacefigure
\startplaceformula[reference=eq1] \startformula c^2 = a^2 + b^2
\stopformula \stopplaceformula
\stopsubsection
,prefixsegments=1:*]
\startsection[title=Section]
\startsubsection[title=SubSection]
\startplacefigure[list=cow] \externalfigure[cow] \stopplacefigure
\startplaceformula[reference=eq1] \startformula c^2 = a^2 + b^2
\stopformula \stopplaceformula
\stopsubsection
\stopsection
\placelistoffigures[criterium=all
,prefixsegments=1:*]
\startsection[title=Section]
\startsubsection[title=SubSection]
\startplacefigure[list=cow] \externalfigure[cow] \stopplacefigure
\startplaceformula[reference=eq1] \startformula c^2 = a^2 + b^2
\stopformula \stopplaceformula
\stopsubsection
\stopsection
\placelistoffigures[criterium=all
. . . . . . . . . 1
\startplaceformula[reference=eq:one,title={Mass-energy equivalence}]
\startformula e=mc^2 \stopformula \stopplaceformula
% 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . 1
% list option could g
I found a workaround for anyone interested:
\setupinteraction[state=start,focus=standard]
\starttext
\startplaceformula[title=$\alpha$,reference=alpha]
\startformula
1 + 1 = 2
\stopformula
\stopplaceformula
\dorecurse{20}{\samplefile{knuth}}
I'm in \in{$\alpha$}[alpha] %so the reference
Hi again. The following doesn't work (the tag is missing):
\startTEXpage[offset=2bp]
\startplaceformula[title=A,reference=alpha]
\startformula
1 + 1 = 2
\stopformula
\stopplaceformula
I'm in \in[alpha]
\stopTEXpage
Jairo
El lun, 22 de feb. de 2021 a la(s) 09:00, Jairo A. del
er level and only use it deep down. It was
> never meant as user command.
>
> > I imagine some things have changed in 2021 and I hope a better solution
> > is feasible nowadays.
>
> \startTEXpage[offset=2bp]
> \startplaceformula[title=
level and only use it deep down. It was
never meant as user command.
I imagine some things have changed in 2021 and I hope a better solution
is feasible nowadays.
\startTEXpage[offset=2bp]
\startplaceformula[title=A]
\startformula
1 + 1 = 2
\stopformula
\stopplaceformula
\stopT
Hi, Jean-Philippe.
This seems to be a bug, indeed. In the meantime, you could use the
preferred \start ... \stop variant.
\starttext
\startplaceformula[F] % works
\startformula
a^2 + b^2 = c^2
\stopformula
\stopplaceformula
The \in[F] formula
\stoptext
Cordially,
Jairo
El mié, 25 de nov. de
ef\mmlformulatitle{\xmlatt{#1}{title}}
> \doifsomethingelse {\mmlformulalabel\mmlformulatitle} {
>
> \startplaceformula[reference=\mmlformulalabel,title=\mmlformulatitle]
> \startformula
> \xmlfirst{#1}{/mml:math}
> \stop
f-sequence or
differently formatted number.
Thanks as ever for any help.
\usemodule[mathml]
\startxmlsetups mml:formula
\edef\mmlformulalabel{\xmlatt{#1}{label}}
\edef\mmlformulatitle{\xmlatt{#1}{title}}
\doifsomethingelse {\mmlformulalabel\mmlformulatitle} {
\startplaceformula
and lmtx. It can be "fixed", however, by replacing
\start...\stopTEXpage by \start...\stoptext, so this might not represent
the most generic incarnation.
Cheers, Henri
---
\startTEXpage
\samplefile{ward} Thus
\startplaceformula
\startformula
\int_a^b f(x) \, \diff x = F(b) - F(a) .
\s
,
% focus=standard,
]
\starttext
\startchapter[title=Some Title, reference=pt:ref]
Lorem ipsum dolor sit amet, \periods
\startplaceformula[reference=eq:ref]
\startformula
c^2 = a^2 + b^2.
\stopformula
\stopplaceformula
Lorem ipsum dolor sit amet, \periods
\startitemize[r
[option=frame,color=blue]
\starttext
\startplaceformula
\startformula
f(x) := \left\{
\startalign
\NC = -1\NC\quad \mbox{if }\, x < 0 \NR
\NC = +1\NC\quad \mbox{if }\, x > 0 \NR
\stopalign\right.
\stopformula
\stopplaceformula
\stoptext
% end framed-frormula.tex
it's not r
Aditya was
asking?
% begin framed-frormula.tex
\setupformulaframed[framecolor=red,frame=on,offset=1ex]
\setupformula[option=frame,color=blue]
\starttext
\startplaceformula
\startformula
f(x) := \left\{
\startalign
\NC = -1\NC\quad \mbox{if }\, x < 0 \NR
\NC = +1\NC\quad \mbox{if }\
mental framed support in beta ...
\starttext
\setupformulaframed[framecolor=red,frame=on,offset=1ex]
\setupformula[option=frame,color=blue]
\setupformula[numbercommand={\inframed[framecolor=green]}]
\startplaceformula
\startformula
2 + 2 = 3 + 1
\stopformula
\stopplaceformula
\st
On Mon, 15 Sep 2014, Maggyero wrote:
I want to have the formula numbers of cases environment flushed on the
right like for regular formulas (not the default
numberdistance=2.5\emwidth). How can I do that?
\starttext
\startplaceformula
\startformula
\startcases
\NC x = 1
I want to have the formula numbers of cases environment flushed on the
right like for regular formulas (not the default
numberdistance=2.5\emwidth). How can I do that?
\starttext
\startplaceformula
\startformula
\startcases
\NC x = 1 \NR[+]
\NC y = 1 \NR
\setupmathematics[lcgreek=normal, ucgreek=normal]
\starttext
\input knuth
\startplaceformula
\startformula
a^2 + b^2 = c^2.
\stopformula
\stopplaceformula
\stoptext
Wolfgang
___
If your question is of interest
}
\startplaceformula
\startformula
c^2 = a^2 + b^2
\stopformula
\stopplaceformula
\stoptext
Wolfgang
___
If your question is of interest to others as well, please add an entry to the
Wiki
Hi,
the last beta includes the chapter number in formulas, former betas
didn't. Example:
\starttext
\startchapter [title=Foo]
\startplaceformula
\startformula
E=mc^2
\stopformula
\stopplaceformula
\stopchapter
\stoptext
∙ Is this intended?
∙ How to remove the chapter number
30 matches
Mail list logo